/*
 * Copyright (C) 2017 Baidu, Inc. All Rights Reserved.
 */
package com.oracle.lingshangejia.utils;

import android.content.Context;
import android.os.Environment;

import java.io.File;

public class FileUtil {
    public static File getSaveFile(Context context) {
        File file = new File(context.getFilesDir(), "pic.jpg");
        return file;
    }

    public static String getPath() {
        String path = Environment.getExternalStorageDirectory() + "/Luban/image/";
        File file = new File(path);
        if (file.mkdirs()) {
            return path;
        }
        return path;
    }

}
